import requests
import random

# 设置代理IP池，列表
proxy_list = [
    {'http': 'http://182.34.26.49:9999'},
    {'http': 'http://221.1.90.67:9000'},
    {'http': 'http://119.3.213.143:8081'},
    {'http': 'http://113.121.21.220:9999'}
]

base_url = 'http://erabbit.itheima.net/#/'
header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.86'
}

response = requests.get(base_url, headers=header, proxies=random.choice(proxy_list))  # 用choice方法随机

print(response.status_code)